package br.edu.univas.si.engs.business;

import java.sql.PreparedStatement;
import java.util.List;

import br.edu.univas.si.engs.model.ConnectDB;
import br.edu.univas.si.engs.model.EntregTo;
import br.edu.univas.si.engs.model.LocDAO;
import br.edu.univas.si.engs.model.RentTO;

public class LocBusiness extends ConnectDB{
	
	private LocDAO locDAO;
	private LocDAO locDAO2;
	
	public LocBusiness(LocDAO locMock, LocDAO locMock2){
		this.locDAO = locMock;
		this.locDAO2 = locMock2;
	}
	
	public LocBusiness(){
		locDAO = new LocDAO();
		locDAO2 = new LocDAO();
	}
	
		
	public void addLocacao(RentTO rentTO) {
		locDAO.addLocacao(rentTO);
	}
	
	public void entregar(EntregTo entregaTO) {
		locDAO2.entregar(entregaTO);
	}
	
	public RentTO getRentTO(int id){
		return locDAO.getRentTO(id);
	}
	
	public EntregTo getEntregTO(int id){
		return locDAO2.getEntregTO(id);
	}
	
	public List<RentTO> listAllRentTO(){
		return locDAO.listAllRentTO();
	}
	
	public List<EntregTo> listAllEntregTO(){
		return locDAO2.listAllEntregTO();
	}

}
